package com.hospital.hospitalpatientservice.controller;


import com.hospital.common.vo.ResultEntity;
import com.hospital.hospitalpatientservice.entity.Work;
import com.hospital.hospitalpatientservice.service.IWorkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 工作表 前端控制器
 * </p>
 *
 * @author handingfei
 * @since 2020-10-22
 */
@RestController
@RequestMapping("/work")
public class WorkController {

    @Autowired
    private IWorkService iWorkService;

    @RequestMapping("/list")
    public ResultEntity list(){

        List<Work> list = iWorkService.list();

        return ResultEntity.ok("200","成功",list);
    }
}

